home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 050a / snr53b.zip / DEMO.BAT < prev    next >
DOS Batch File  |  1993-05-30  |  4KB  |  127 lines

  1. echo off
  2. cls
  3. echo **** This demo file will convert a short test document through
  4. echo **** some of the sample tables, and display the conversion on the
  5. echo **** screen.
  6. echo 
  7. echo **** If you print each of these screen displays with the
  8. echo **** Print Screen key (PrtSc), you can compare them later.
  9. echo 
  10. pause
  11. cls
  12. echo **** This is the original text file that we will convert ****
  13. type demotest
  14. pause
  15. cls
  16. echo **** Compress all multiple adjacent spaces ****
  17. echo      table used: COMPRESS.S
  18. snr demotest con compress.s
  19. pause
  20. cls
  21. echo **** Turn l and O into 1 and 0 ****
  22. echo      table used: EL2ONE.S
  23. snr demotest con el2one.s
  24. pause
  25. cls
  26. echo **** Turn all caps into upper and lower case ****
  27. echo      table used: CAP2LC1.S
  28. snr demotest con cap2lc1.s
  29. pause
  30. cls
  31. echo **** Turn the file into all upper case ****
  32. echo      table used: LC2CAP.S
  33. snr demotest con lc2cap.s
  34. pause
  35. cls
  36. echo **** Make left-and-right facing quotes out of double quotes ****
  37. echo      table used: QUOTES.S
  38. snr demotest con quotes.s
  39. pause
  40. cls
  41. echo **** Display all non-ASCII characters as HEX codes ****
  42. echo      table used: VTYPE.S
  43. snr demotest con vtype.s
  44. pause
  45. cls
  46. echo **** Next we will show how a typesetting file can have its codes
  47. echo **** stripped clean. The sample contains Penta System codes (which
  48. echo **** are more or less similar to other code-driven front-end
  49. echo **** typesetters).
  50. echo 
  51. pause
  52. cls
  53. echo **** Original Penta-coded file ****
  54. type pentatst
  55. pause
  56. cls
  57. echo **** Same file after removing Penta typesetting codes ****
  58. echo      table used: NOCODES.S
  59. snr pentatst con nocodes.s
  60. pause
  61. cls
  62. echo **** The next run will show how tab codes can be inserted into
  63. echo **** an uncoded ASCII file. The codes employed here are a generic
  64. echo **** pseudo-code which can be modified (of course) to fit your
  65. echo **** application. ASCII hex 09 is used as the tab character.
  66. echo 
  67. pause
  68. cls
  69. echo **** Original ASCII file ****
  70. type tabtest
  71. pause
  72. cls
  73. echo **** Same file after converting to tab codes ****
  74. echo      table used: SPC2TAB.S
  75. snr tabtest con spc2tab.s
  76. pause
  77. cls
  78. echo **** Or, using TABULAR.S, you can have
  79. echo      DIFFERENT tab codes between each column ****
  80. echo      tables used: TABULAR.S & TABULAR2.S
  81. snr tabtest con tabular.s tabular2.s
  82. echo **** You can even change the order of VARIABLE LENGTH COLUMNS!
  83. echo **** Watch the last 5 lines closely! We'll swap the first and
  84. echo **** third tab columns, but leave the codes where they are.
  85. echo 
  86. pause
  87. cls
  88. echo **** Same file, with first and third
  89. echo      columns swapped ****
  90. echo      table used: SWAPTABS.S
  91. snr tabtest con tabular.s tabular2.s swaptabs.s
  92. pause
  93. cls
  94. echo **** The next run will show how a fixed-length data file
  95. echo **** can be transformed into an ASCII text file.
  96. echo 
  97. echo **** A fixed-length file contains no carriage returns, so data will
  98. echo **** appear to run together on the screen. This makes it very difficult
  99. echo **** to edit using normal word processing programs.
  100. echo 
  101. pause
  102. cls
  103. echo **** Original fixed-length data file (record length = 60) ****
  104. type fixed
  105. pause
  106. cls
  107. echo **** Same file in ASCII text format ****
  108. echo      table used: FIXED2CR.S
  109. snr fixed con fixed2cr.s
  110. pause
  111. cls
  112. echo **** The next run will show how the fields in a comma-quote-delimited
  113. echo **** text file can be transformed into a fixed-length file.
  114. echo 
  115. pause
  116. cls
  117. echo **** Original delimited text file ****
  118. type merge
  119. pause
  120. cls
  121. echo **** Same file in fixed-length ASCII ****
  122. echo      table used: SDF2FIX.S
  123. snr merge con sdf2fix.s
  124. pause
  125. cls
  126. echo END OF SNR DEMO. THANK YOU FOR USING SNR.
  127.